<?php 
require_once("../include/conn.php");
$movesql="SELECT  dg.id ,dg.title ,dg.author ,dg.tdate,mp.url as pic, mp.isshow FROM bl_dzgg dg left join bl_mpics mp on dg.id = mp.bl_id  where  mp.isshow='1' and mp.url is not null";
$moveqq=mysql_query($movesql);
?>
<link href="/images/DefaultSkin.css" rel="stylesheet" type="text/css" />
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="border">
        <tr> 
          <td align="center" class="border2"><div id=demo 
style=overflow:hidden;height:110px;width:780px;> 
              <table align=left 
cellpadding=0 cellspace=0 border=0>
                <tr> 
                  <td id=demo1 valign=top> 
                    <table width='100%' cellpadding='0' cellspacing='5' border='0' align='center'>
					<tr valign='top'>					
					<?php 
					while($move_row=mysql_fetch_array($moveqq)){					
	if(strlen($move_row[title])>19){
	$move_title=substr($move_row[title],0,18);
	}else
	{
		$move_title=$move_row[title];
	}
?>
					<td align='center'><a href='/detailshow.php?id=<?php echo $move_row[id] ?>' 
					title='图片名称：<?php echo  $move_row[title]?>
&#13;&#10;作&nbsp;&nbsp;&nbsp;&nbsp;者：<?php echo  $move_row[author]?>
&#13;&#10;更新时间：<?php echo  $move_row[tdate]?>' target='_blank'>
<img class='pic3' src='<?php echo  $move_row[pic]?>'  width='110' height='80' border='0'><br>
<?php echo $move_title ?></a>
					</td>
					<?php }?>
					
					</tr></table>
                  </td>
                  <td id=demo2 ></td>
                </tr>
              </table>
            </div>
            <script>
var speed=20
demo2.innerHTML=demo1.innerHTML
function Marquee1(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar1=setInterval(Marquee1,speed)

demo.onmouseover=function() {clearInterval(MyMar1)}
demo.onmouseout=function() {MyMar1=setInterval(Marquee1,speed)}
</script> </td>
        </tr>
      </table>